package com.gxa.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

public class Contract {

  private Integer id;
  private String contractName;
  private Integer categoryId;
  private Integer statusId;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp lastOpdate;
  private Integer emplId;
  private Integer isDelete;
  private Double amount;
  private String nameFirst;
  private String nameSecond;
  private String licenceFirst;
  private String licenceSecond;
  private String content;
  private String remark;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp createTime;
  private String createName;

  private  ContractCategory contractCategory;

  private ContractStatus contractStatus;

  private Empl empl;

  public String getNameFirst() {
    return nameFirst;
  }

  public void setNameFirst(String nameFirst) {
    this.nameFirst = nameFirst;
  }

  public String getNameSecond() {
    return nameSecond;
  }

  public void setNameSecond(String nameSecond) {
    this.nameSecond = nameSecond;
  }

  public String getLicenceFirst() {
    return licenceFirst;
  }

  public void setLicenceFirst(String licenceFirst) {
    this.licenceFirst = licenceFirst;
  }

  public String getLicenceSecond() {
    return licenceSecond;
  }

  public void setLicenceSecond(String licenceSecond) {
    this.licenceSecond = licenceSecond;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public Timestamp getCreateTime() {
    return createTime;
  }

  @Override
  public String toString() {
    return "Contract{" +
            "id=" + id +
            ", contractName='" + contractName + '\'' +
            ", categoryId=" + categoryId +
            ", statusId=" + statusId +
            ", lastOpdate=" + lastOpdate +
            ", emplId=" + emplId +
            ", isDelete=" + isDelete +
            ", amount=" + amount +
            ", nameFirst='" + nameFirst + '\'' +
            ", nameSecond='" + nameSecond + '\'' +
            ", licenceFirst='" + licenceFirst + '\'' +
            ", licenceSecond='" + licenceSecond + '\'' +
            ", content='" + content + '\'' +
            ", remark='" + remark + '\'' +
            ", createTime=" + createTime +
            ", createName='" + createName + '\'' +
            ", contractCategory=" + contractCategory +
            ", contractStatus=" + contractStatus +
            ", empl=" + empl +
            '}';
  }

  public void setCreateTime(Timestamp createTime) {
    this.createTime = createTime;
  }

  public String getCreateName() {
    return createName;
  }

  public void setCreateName(String createName) {
    this.createName = createName;
  }

  public Double getAmount() {
    return amount;
  }

  public void setAmount(Double amount) {
    this.amount = amount;
  }

  public Empl getEmpl() {
    return empl;
  }

  public void setEmpl(Empl empl) {
    this.empl = empl;
  }

  public ContractCategory getContractCategory() {
    return contractCategory;
  }

  public void setContractCategory(ContractCategory contractCategory) {
    this.contractCategory = contractCategory;
  }

  public ContractStatus getContractStatus() {
    return contractStatus;
  }

  public void setContractStatus(ContractStatus contractStatus) {
    this.contractStatus = contractStatus;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getContractName() {
    return contractName;
  }

  public void setContractName(String contractName) {
    this.contractName = contractName;
  }

  public Integer getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Integer categoryId) {
    this.categoryId = categoryId;
  }

  public Integer getStatusId() {
    return statusId;
  }

  public void setStatusId(Integer statusId) {
    this.statusId = statusId;
  }

  public Timestamp getLastOpdate() {
    return lastOpdate;
  }

  public void setLastOpdate(Timestamp lastOpdate) {
    this.lastOpdate = lastOpdate;
  }

  public Integer getEmplId() {
    return emplId;
  }

  public void setEmplId(Integer emplId) {
    this.emplId = emplId;
  }

  public Integer getIsDelete() {
    return isDelete;
  }

  public void setIsDelete(Integer isDelete) {
    this.isDelete = isDelete;
  }

}
